package com.yl.users.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.users.entity.CompanyPermissionsView
import com.yl.users.entity.CompanyRoleTableField
import com.yl.users.pojo.vo.CompanyPermissionsViewSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

@Mapper
interface CompanyRoleTableFieldMapper : BaseMapper<CompanyRoleTableField> {

	/**
	 * 获取角色所有的字段id
	 */
	fun getRoleFieldIds(@Param("roleId") roleId: Long): List<Long>

	/**
	 * 获取角色字段列表
	 * @param vo 备用
	 */
	fun getRoleFieldList(
		@Param("roleId") roleId: Long
	): List<CompanyPermissionsView>


}